package com.slm.report.db;

import com.contrarywind.interfaces.IPickerViewData;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;

/**
 * @ProjectName: My Application
 * @Package: com.slm.report.db
 * @ClassName: SchoolDtaBean
 * @Description: java类作用描述
 * @Author: 王丹丹
 * @CreateDate: 2020/6/5 15:31
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/6/5 15:31
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Table(database = ReportDatabase.class, name = "school_dta")
public class SchoolDtaBean extends BaseModel  implements IPickerViewData {
    @PrimaryKey(autoincrement = true)
    @Column
    private long id;

    //名称
    @Column
    private String name;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getPickerViewText() {
        return name;
    }
}
